home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Freeware
/
First Page 2006 3.00
/
fp2006-final-3.00-setup.exe
/
{app}
/
Iscripts
/
Image & Music Effects
/
random-banner.izs
< prev
next >
Wrap
Text File
|
2005-07-30
|
2KB
|
136 lines
<!NOWIZARD>
<!TITLE>Random Banner script
<!/TITLE>
<!DESCRIPTION>A script that will load a random banner with the corresponding link and text link (out of three possible banners in this example).
<!/DESCRIPTION>
<!CATEGORY>img and music effects<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<SCRIPT>
<!-- written by The Omega
// http://members.xoom.com/the_omega/
// the_omega@geocities.com
// You must leave these comments in to use the script
// (hey, I wrote it. Let me have a little credit!)
// put info for randomly selected banners here, as in the examples
gfx0="banner1.gif";
lnk0="page1.html";
alt0="Alt code 1";
txt0="Tagline 1";
gfx1="banner2.gif";
lnk1="page2.html";
alt1="Alt code 2";
txt1="Tagline 2";
gfx2="banner3.gif";
lnk2="page3.html";
alt2="Alt code 3";
txt2="Tagline 3";
len=3; // change to equal number of banners
today=new Date();
today=today.getTime()/10;
rnd=today%len;
document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>');
//-->
</SCRIPT>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<SCRIPT>
<!-- written by The Omega
// http://members.xoom.com/the_omega/
// the_omega@geocities.com
// You must leave these comments in to use the script
// (hey, I wrote it. Let me have a little credit!)
// put info for randomly selected banners here, as in the examples
gfx0="banner1.gif";
lnk0="page1.html";
alt0="Alt code 1";
txt0="Tagline 1";
gfx1="banner2.gif";
lnk1="page2.html";
alt1="Alt code 2";
txt1="Tagline 2";
gfx2="banner3.gif";
lnk2="page3.html";
alt2="Alt code 3";
txt2="Tagline 3";
len=3; // change to equal number of banners
today=new Date();
today=today.getTime()/10;
rnd=today%len;
document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>');
//-->
</SCRIPT>
<!-- END OF SCRIPT -->
<!/PREVIEW>
<!RELATED>NONE<!/RELATED>